/***************************************************************************\
 * The Mattise Kernel														*
 * Copyright 2007 Matthew Iselin											*
 * Licensed under the GPL													*
 *																			*
 * string_util.cc															*
 *																			*
 * String utility functions, most of which are designed for speed.			*
 *																			*
\***************************************************************************/

#ifndef STRING_UTIL_H
#define STRING_UTIL_H

// gets part of a string from another
void substr( char* dest, const char* src, int start, int end );

// copies a string
int strcpy( char* dest, const char* src );

// gets the length of a string
int strlen( const char* str );

// string comparison
int strcmp( const char* str1, const char* str2, int len );

// finds a character in a string
int find( const char* str, const char find, int start, int end );

// converts a string to an integer
int atoi( char* ptr );

#endif
